#{extends 'EmploymentAction/layout.html' /}

<div id="crudList" class="">

    <h2 id="crudListTitle">人才信息</h2>

    <div id="crudListSearch">
    </div>

    <div id="crudListTable">
        <table>
       <thead>
         <tr>
           <th>姓名</th>
           <th>年龄</th>
           <th>性别</th>
           <th>手机</th>
           <th>住址</th>
           <th>学历</th>
           <th>报名时间</th>
           <th>招聘信息</th>
           <th>查看简历</th>
           <th>删除</th>
         </tr>
       </thead>
       #{if flash.success}
	    <tr>
		    <td colspan="10" style="text-align: center">
		    <font color="red">${flash.success}</font>
		    </td>
	    </tr>
       #{/if}
       #{list items:staffs,as:'staff'}
        <tr>
          <td><a href="@{show(staff.id)}">${staff.staName}</a></td>
          <td>${staff.staAge}</td>
          <td>${staff.staSex}</td>
          <td>${staff.staMob}</td>
          <td>${staff.staAddr}</td>
          <td>${staff.staDip}</td>
          <td>${staff.staEnr}</td>
          <td>${staff.employment.empTit}</td>
          <td><a href="http://localhost:8686${staff.staRes}">查看简历</a></td>
          <td><a href="@{delete(staff.id,staff.employment.id)}">删除</a></td>
        </tr>
       #{/list}
    </table>
    </div>

    <div id="crudListPagination">
    </div>
    
    <p id="crudListAdd">
        <a href="@{blank(id)}">添加</a>
    </p>

</div>
